String to Number without using Integer.parseInt() method